1. Command: gzip (zip file)Zip file suffix. gzPs:gzip test.txt Result: Generate file test.txt.gz, original file test.txt disappear.Note: Only files can be compressed, the directory cannot be compressed, the original files are not preserved after
TARCommand nameThe GNU version of the tar-tar file management program. The following sections describe their meanings one by one.OverviewTar [-] A -- catenate -- concatenate | c -- create | d -- diff -- compare | r -- append | t -- list | u --
. TarUnpack: Tar xvf filename.tarPackage: Tar CVF filename.tar dirname(Note: tar is packed, not compressed !)---------------. GZDecompress 1: gunzip filename.gzDecompress 2: gzip-D filename.gzCompression: gzip filename.Tar.gz and. tgzDecompress: Tar
. TarUnpack: Tar xvf filename.tarPackage: Tar CVF filename.tar dirname(Note: tar is packed, not compressed !)---------------. GZDecompress 1: gunzip filename.gzDecompress 2: gzip-D filename.gzCompression: gzip filename.Tar.gz and. tgzDecompress: Tar
Table 1 Linux common compression and decompression command description
Common commands
Brief Chinese description
directory where the program is located
Gzip
Compressed to a file named. GZ (also available as
In Linux, everything is a file. All things are files, including commands, hardware, and software.Linux does not differentiate files by extension, these conventional extensions (. gz,.rpm,.html,.sh) are just a token. Unlike Windows, the extensions in
The compressed format of files in Linux is *.gz/*.bz2/*.xz/*.zip/*. Z, respectively, by Gzip, bZIP, XZ, zip, compress command compression obtained by gunzip/gzip-d, bunzip/bzip-d, xzdec/xz-d, unzip, uncompress decompression. *. Z or *.GZ/*.BZ2/*.XZ
Some compression and archiving commands in linux I. Common compression and decompression tools compressuncomprss suffix: zgzipgunzip suffix: gzbzip2bunzip2 suffix: bz2zip some compression and archiving commands in linux I. Common
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.